package com.atguigu.yygh.shop.repository;

import com.atguigu.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentRepository extends MongoRepository<Department,String> {
    //上传科室接口
    Department getDepartmentsByShopcodeAndDepcode(String shopcode, String depcode);
    List<Department> getDepartmentsByShopcode(String shopcode);
}
